home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: Looking for semaphore example.
- Date: 5 Apr 1996 12:06:50 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4k3nfq$l94@solutions.solon.com>
- References: <4jc5hd$1vlv@ilx018.iil.intel.com> <4jq01e$9kq@solutions.solon.com> <4jro8kINN85c@anvil.ugrad.cs.ubc.ca> <4k1ir3$i4s@sun001.spd.dsccc.com>
- Reply-To: seebs@solon.com
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4k1ir3$i4s@sun001.spd.dsccc.com>,
- Mike McCarty <jmccarty@sun1307.spd.dsccc.com> wrote:
- >)In article <4jq01e$9kq@solutions.solon.com>,
- >)Peter Seebach <seebs@solutions.solon.com> wrote:
- >)>Sure. You could write strictly conforming C which parses and translates
- >)>one or more programs in an arbitrary language, and gives them various
- >)>"calls" they can make, which could include semaphores.
-
- >Such a program might be compliant, but it would not be portable. The
- >main reason for compliance is to achieve portability. If one is a priori
- >willing to give up portability, then why worry about compliance?
-
- Huh? If it's compliant, it's by definition portable to any machine with a C
- compiler.
-
- I've written C programs which parse and translate programs in imaginary
- languages; it would be easy (a SMOP) to enhance them to run more than one
- program at once, and schedule them, and then provide a semaphore-locking
- routine. I could probably provide a dining philosopher language in about
- an hour with Lex/Yacc, or a couple of days otherwise. (I have absolutely no
- talent for implementing parsers.)
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-